class SplitAddressIntoAddressParts < ActiveRecord::Migration
  def self.up
	remove_column :orders, :address
	add_column :orders, :street , :string
	add_column :orders, :city , :string
	add_column :orders, :zip , :string
	add_column :orders, :streetNr , :string
	
  end

  def self.down
	add_column :orders, :address , :text
	remove_column :orders, :street , :string
	remove_column :orders, :city , :string
	remove_column :orders, :zip , :string
	remove_column :orders, :streetNr , :string
  end
end
